package org.wuyichun.gift.client;

import org.wuyichun.gift.client.fallback.LoginUserFeignClientFallBack;
import org.wuyichun.gift.domain.LoginUser;
import org.wuyichun.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "gift-auth"
        ,path = "/loginUser"
        ,fallbackFactory = LoginUserFeignClientFallBack.class)
public interface LoginUserFeignClient {

    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
